package com.walleipt;

import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Main_ {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("application-context.xml") ;
        context.start();

        Pig pig = (Pig)context.getBean("pt_001" );
        System.out.println( pig.getId()+"-"+pig.getName()+"-"+pig.getAge() );
    }
}
